package edu.sctu.practice.class01.huangtianlin.assign3.two;

/**
 * Created by Administrator on 2015/10/22.
 */
public class Main {

    public static void main(String[] args) {

        Circle circle = new Circle("red", 6);

        Rectangle rectangle = new Rectangle("yellow", 12.01, 6.33);

        EqualArea equalArea = new EqualArea();

      boolean judge =   equalArea.equalArea(circle,rectangle);

        if (judge = true){

            System.out.println("圆面积大于矩形面积");

        }else {

            System.out.println("矩形面积大于圆面积");

        }

        DisplayInfo displayInfo = new DisplayInfo();

        displayInfo.displayGeomertricObject(circle);

        displayInfo.displayGeomertricObject(rectangle);

    }

}
